//
//  NSObject+Ex.m
//  Vstore
//
//  Created by Apple on 14/12/30.
//  Copyright (c) 2014年 LITB. All rights reserved.
//

#import "NSObject+Ex.h"

@implementation NSObject (Ex)

+ (instancetype)instanceWithSetAttributesBlock:(void(^)(id aSelf))block
{
    id obj = [[[self class] alloc] init];
    if (block != NULL) {
        block(obj);
    }
    return obj;
}

- (void)configAttributesWithBlock:(void(^)(id aSelf))block
{
    if (block != NULL) {
        block(self);
    }
}

@end
